﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class SortArrII
{
    static void Main()
    {
        int [] Arr = {10, 22, 11, 77, 88, 55, 66, 33, 44, 99, 100};
        int arrLenght = Arr.Length;
        for (int upIndex = 0; upIndex < arrLenght - 1; upIndex++) 
        {
            for (int dwIndex = upIndex + 1; dwIndex < arrLenght; dwIndex++) 
            {
                int tmp = 0;
                if (Arr[upIndex] > Arr[dwIndex]) 
                {
                    tmp = Arr[upIndex];
                    Arr[upIndex] = Arr[dwIndex];
                    Arr[dwIndex] = tmp;
                }
            }
        }
        foreach (int sort in Arr) 
        {
            Console.WriteLine(sort);
        }
    }
}

